﻿using Occt;

namespace Tx.OCC
{
    public static class OccTopLocEx
    {
        /// <summary>
        /// Converts to ax3.
        /// </summary>
        /// <param name="rotation">The rotation.</param>
        /// <returns>gp_Ax3.</returns>
        public static gp_Ax3 ToAx3(this TopLoc_Location rotation)
        {
            var trsf = rotation.Transformation;
            return trsf.Rotation.ToAx3(new gp_Pnt(trsf.TranslationPart));
        }
    }
}
